package online.foxnull2.foxmall.order.feign;

import online.foxnull2.common.utils.R;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;

@FeignClient("foxmall-product")
public interface ProductFeignService {

    @GetMapping("/product/spuinfo/{skuId}/spuInfo")
    R getSpuInfoBySkuId(@PathVariable("skuId") Long skuId);

    @RequestMapping("/product/brand/info/{brandId}")
    R info(@PathVariable("brandId") Long brandId);
}
